<template>
  <div>
    <button @click="handleClick($event, 'zs')">按钮</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: 1,
    };
  },
  methods: {
    handleClick(e, name) {
      console.log(e, name);
      this.$emit("getCount", this.count);
    },
    sayHi() {
      console.log("你好");
    },
  },
};
</script>

<style></style>
